package com.ldc.commonlibs

import android.app.Application
import android.content.res.Configuration
import android.util.Log

abstract class BaseAppInit {
    protected val TAG: String = "【%s】".format(this::class.java.name)


    private var application: Application? = null

    fun setApplication(application: Application) {
        this.application = application
    }

    fun getApplication(): Application = application!!

    open fun onCreate() {
        Log.e(TAG, "onCreate: -=-=-=")
    }

    open fun onTerminate() {
        Log.e(TAG, "onTerminate: -=-=-=")
    }

    open fun onLowMemory() {
        Log.e(TAG, "onLowMemory: -=-=-=")
    }

    open fun configurationChanged(configuration: Configuration?) {
        Log.e(TAG, "configurationChanged: -=-=-=")
    }

}